package com.sbj.entity;

import cn.zhxu.bs.bean.DbField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:39
 * 抢购商品
 */
@Getter
@Setter
@TableName("buy_goods")
public class BuyGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("goods_Name")
    private String goodsName;

    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @TableField("goods_num")
    private Integer goodsNum;

    /**
     * 会员ID
     */
    @TableField("member_id")
    private Integer memberId;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;



    @TableField("goods_type")
    private Integer goodsType;

    /**
     * 0 未出售 1出售
     */
    @TableField("status")
    private Integer status;


    @DbField("grounding")
    private Integer grounding;

    /**
     * 订单主键
     */
    @TableField("buy_order_id")
    private Integer buyOrderId;

    @TableField("goods_image")
    private String goodsImage;
}
